package com.hua.springCloud.service;



import com.hua.springCloud.entities.Payment;
import com.hua.springCloud.mapper.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl  implements PaymentService{
    @Autowired //@Resouce 也可以
    private PaymentMapper paymentMapper;
    @Override
    public int create(Payment payment) {
       return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return  paymentMapper.getPaymentById(id);
    }
}
